<div ng-controller="ProjectInfoController" class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">项目介绍</h3>
        </div>
        <div class="panel-body">
            <div style="background:url('../../img/c0.jpg') center center; background-size:cover">
                <div class="wrapper-lg bg-white-opacity">
                    <div class="row m-t">
                        <div class="col-sm-7">
                            <a href class="thumb-lg pull-left m-r">
                                <img src="../../img/svg/icon_project.svg" class="img-circle">
                            </a>
                            <div class="clear m-b">
                                <div class="m-b m-t-sm">
                                    <span class="h3 text-black">{{project.name}}</span>
                                </div>
                                <p>
                                    <small>{{project.remark}}</small>
                                </p>
                                <p class="m-b">
<!--                                    <a href class="btn btn-sm btn-bg btn-rounded btn-default btn-icon"><i class="fa fa-twitter"></i></a>-->
<!--                                    <a href class="btn btn-sm btn-bg btn-rounded btn-default btn-icon"><i class="fa fa-facebook"></i></a>-->
<!--                                    <a href class="btn btn-sm btn-bg btn-rounded btn-default btn-icon"><i class="fa fa-google-plus"></i></a>-->
                                </p>
<!--                                <p>-->
<!--                                    <img class="icon" src="../../img/svg/icon_time.svg"> {{project.createTime | format}}-->
<!--                                </p>-->
                                <a class="btn btn-sm btn-success btn-rounded" ng-click="code()">代码生成</a>
                            </div>
                        </div>
                        <div class="col-sm-5">
                            <div class="pull-right pull-none-xs text-center">
                                <a href class="m-b-md inline m">
                                    <span class="h3 block font-bold">{{datasourceTotal}}</span>
                                    <small>Datasource</small>
                                </a>
                                <a href class="m-b-md inline m">
                                    <span class="h3 block font-bold">{{templateTotal}}</span>
                                    <small>Template</small>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">项目配置</h3>
        </div>
        <div class="panel-body">
            <uib-tabset class="tab-container">
                <uib-tab heading="数据源" active="{{tabType == 0}}">
                    <div class="row">
                        <div class="col-md-3">
                            <button class="btn btn-success" ng-click="add()">新增</button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="table-responsive">
                            <table class="table table-striped m-b-none" id="tbl">
                                <thead>
                                <tr>
                                    <th class="text-center">
                                        <label class="i-checks m-b-none">
                                            <input type="checkbox" id="chkAll"><i></i>
                                        </label>
                                    </th>
                                    <th class="text-center">名称</th>
                                    <th class="text-center">账号</th>
                                    <th class="text-center">Driver</th>
                                    <!--                <th class="text-center">Url</th>-->
                                    <th class="text-center">创建时间</th>
                                    <th class="text-center">操作</th>
                                </tr>
                                </thead>
                                <tbody class="text-center" id="tbody">
                                </tbody>
                            </table>
                        </div>
                    </div>
                </uib-tab>
                <uib-tab heading="模板" active="{{tabType == 1}}">
                    <div class="row">
                        <div class="col-md-3">
                            <button class="btn btn-success" ng-click="add2()">新增</button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="table-responsive">
                            <table class="table table-striped m-b-none" id="tbl2">
                                <thead>
                                <tr>
                                    <th class="text-center">
                                        <label class="i-checks m-b-none">
                                            <input type="checkbox" id="chkAll2"><i></i>
                                        </label>
                                    </th>
                                    <th class="text-center">模板名称</th>
<!--                                    <th class="text-center">模板描述</th>-->
<!--                                    <th class="text-center">公私类型</th>-->
                                    <th class="text-center">引擎类型</th>
                                    <th class="text-center">文件类型</th>
                                    <th class="text-center">创建时间</th>
                                    <th class="text-center">操作</th>
                                </tr>
                                </thead>
                                <tbody class="text-center">
                                </tbody>
                            </table>
                        </div>
                    </div>
                </uib-tab>
            </uib-tabset>
        </div>
    </div>

    <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">{{form.title}}</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">名称:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="username" ng-model="form.entity.name">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">驱动:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="driver" ng-model="form.entity.driver">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">URL:</label>
                            <div class="col-sm-10">
                              <textarea type="text" class="form-control" placeholder="driver" ng-model="form.entity.url" rows="5">
                              </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">账号:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="account" ng-model="form.entity.account">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">密码:</label>
                            <div class="col-sm-10">
                                <input type="password" class="form-control" placeholder="password" ng-model="form.entity.password">
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" ng-click="test()">连接测试</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" ng-click="save()">提交</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</div>